﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"   Title="Récupération du Mot de passe" CodeBehind="SendPassword.aspx.cs" %>

<script runat="server">

    protected void ButtonSendPasswd_Click(object sender, EventArgs e)
    {
        string email = Convert.ToString(TextBoxEmail.Text);
        INSTA.MusiqueStore.DAL.SendPassword.sendmail(email);

    }
</script>

<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent">
    <div class="auto-style1">
        

        <strong><em>Problème de mot de passe.<br />
        <br />
        <span class="auto-style2">Merci de remplir le formulaire.<br />
        </span></em></strong>
        <form>
            <table style="width: 100%;">
                <tr>
                    <td>
                        <dx:ASPxLabel ID="LabelEmail" runat="server" Text="Email"/>
                        <dx:ASPxTextBox ID="TextBoxEmail" runat="server" Width="50%">
                        </dx:ASPxTextBox>
                      
                      <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                      Display="Dynamic" ValidationGroup="newUser"
                      ErrorMessage="Email invalide veuillez vérifier la saisie de votre e-mail" 
                       ValidationExpression="^[a-zA-Z0-9-+.'_]+@\w+([-.]\w+)*\.\w+([-.]\w+)*$" style="font-size: small" />
   
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        <dx:ASPxButton ID="ButtonSendPasswd" runat="server" Text="Valider" OnClick="ButtonSendPasswd_Click" >
                      </dx:ASPxButton>
                    </td>
                   
                </tr>
                
            </table>  
        </form>

    </div>
</asp:Content>

<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .auto-style2 {
            font-size: large;
        }
    </style>
</asp:Content>


